fix(pricing): Claude Haiku 4.5 actual Anthropic pricing ($0.25 → $1.00/M)#37
Conversation
Both cost tables had Haiku 4.5 at Haiku 3.5-era prices ($0.25/$1.25 per 1M tokens). Actual Anthropic 4.5 pricing is $1.00/$5.00. This made every Haiku-tier cost projection (incl. the planner cost simulation) understate real spend by 4×. - application/use_cases/cost_estimator.py: input $0.25 → $1.00 - domain/services/engine_cost_calculator.py: ($0.25, $1.25) → ($1.00, $5.00) - All 3,235 unit tests still pass (haiku < sonnet invariant intact: $1 < $3) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR updates token pricing for the ChangesModel Pricing Update
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- Promote Unreleased CHANGELOG entry to v0.6.3 (2026-05-22), rolling up 7 PRs since v0.6.2: TD-195 router (#40), plan-evaluator fix (#39), Haiku A/B (#38), Haiku pricing fix (#37), cost-sim harness (#36), TD-189 step 5 CLI (#35). - Bump pyproject + main.py + version consistency test + uv.lock. - Refresh CLAUDE.md version banner to 0.6.3 / 2026-05-22.
Summary
Both Morphic cost tables had Haiku 4.5 priced at Haiku 3.5-era levels ($0.25 input / $1.25 output per 1M tokens). Anthropic's actual Haiku 4.5 public pricing is $1.00 input / $5.00 output per 1M tokens.
This made every Haiku-tier cost projection (including yesterday's #36 planner cost simulation) understate real spend by ~4× on input and on output.
Changes
application/use_cases/cost_estimator.py— MODEL_COST_TABLE input: $0.25 → $1.00/Mdomain/services/engine_cost_calculator.py— _MODEL_PRICING: ($0.25, $1.25) → ($1.00, $5.00)/MImpact on cost simulation
Re-running
benchmarks/planner_cost_simulation.pywith corrected pricing:Test plan
uv run --extra dev pytest tests/unit/ -q— 3,235 passed, 0 regressionsuv run --extra dev ruff check .— cleantest_haiku_cheaper_than_sonnetinvariant still holds ($1 < $3)🤖 Generated with Claude Code
Summary by CodeRabbit